<template>
    <ul>
        <li>id:{{ id }}</li>
        <li>x:{{ title }}</li>
        <li>y:{{ content }}</li>
    </ul>
</template>

<script lang="ts">
export default {
    name:'NewsDetails'
}
</script>

<script setup lang="ts">
import { useRoute } from 'vue-router';
import { toRefs } from 'vue';
/* 接受参数 */
const x = defineProps(['id', 'title', 'content'])

</script>